home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C & C++ Multimedia Cyber Classroom
/
C and C++ Multimedia Cyber Classroom (Prentice Hall) (1998).iso
/
src
/
fig09_11.jar
/
Ch09
/
Fig09_11
/
Base2.h
< prev
next >
Wrap
C/C++ Source or Header
|
1997-08-25
|
310b
|
16 lines
// Fig. 9.11: base2.h
// Definition of class Base2
#ifndef BASE2_H
#define BASE2_H
class Base2 {
public:
Base2( char c ) { letter = c; }
char getData() const { return letter; }
protected: // accessible to derived classes
char letter; // inherited by derived class
};
#endif